Browse Source

fix testcase for Array.prototype.splice

pull/1/head
Sami Vaarala 11 years ago
parent
commit
9e745d27cc
  1. 8
      ecmascript-testcases/test-builtin-array-proto-splice.js

8
ecmascript-testcases/test-builtin-array-proto-splice.js

@ -38,12 +38,12 @@ function test(this_value, args, no_pre_post) {
}
t = Array.prototype.splice.apply(this_value, args);
print('res', dumpValue(t));
if (!no_pre_post) {
print('post', dumpValue(this_value));
}
} catch (e) {
print(e.name);
}
if (!no_pre_post) {
print('post', dumpValue(this_value));
}
}
/*===
@ -5457,8 +5457,10 @@ try {
coercion
pre undefined
TypeError
post undefined
pre null
TypeError
post null
pre boolean undefined
res object 0
post boolean undefined

Loading…
Cancel
Save