projects
/
platform
/
upstream
/
js.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 1.0.0
[platform/upstream/js.git]
/
js
/
src
/
jit-test
/
tests
/
basic
/
testReconstructImacroPCStack.js
1
x = Proxy.create((function () {
2
return {
3
get: function () {}
4
}
5
}()), Object.e)
6
7
var hit = false;
8
9
try {
10
Function("\
11
for(var a = 0; a < 2; ++a) {\
12
if (a == 0) {}\
13
else {\
14
x > x\
15
}\
16
}\
17
")()
18
} catch (e) {
19
hit = true;
20
21
var str = String(e);
22
var match = (str == "TypeError: x is not a function" ||
23
str == "TypeError: can't convert x to number");
24
25
assertEq(match, true);
26
}
27
28
assertEq(hit, true);