Strict and sloppy functions shouldn't share structure
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@225273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/JSTests/stress/get-by-id-strict-callee.js b/JSTests/stress/get-by-id-strict-callee.js
new file mode 100644
index 0000000..929d65e
--- /dev/null
+++ b/JSTests/stress/get-by-id-strict-callee.js
@@ -0,0 +1,24 @@
+let warm = 1000;
+
+function bar() {
+ for (let i = 0; i < warm; ++i)
+ arguments.callee;
+}
+
+function baz() {
+ "use strict";
+ arguments.callee;
+}
+
+bar();
+
+let caught = false;
+
+try {
+ baz();
+} catch (e) {
+ caught = true;
+}
+
+if (!caught)
+ throw new Error(`bad!`);