[JSC] Do not use asArrayModes() with Structures because it discards TypedArray inform...
[WebKit-https.git] / JSTests / stress / caller-native-code.js
1 function f() {
2     foo = f.caller;
3 }
4
5 // Test C++ code constructor
6 new Number({ valueOf: f });
7
8 if (foo !== null)
9     throw new Error(foo);
10
11 foo = 1;
12
13 // Test C++ function.
14 [1].slice({ valueOf: f });
15
16 if (foo !== null)
17     throw new Error(foo);
18
19 foo = 1;
20
21 // Test builtin js code
22 [1].map(f)
23
24 if (foo !== null)
25     throw new Error(foo);