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); t = Array.prototype.splice.apply(this_value, args);
print('res', dumpValue(t)); print('res', dumpValue(t));
if (!no_pre_post) {
print('post', dumpValue(this_value));
}
} catch (e) { } catch (e) {
print(e.name); print(e.name);
} }
if (!no_pre_post) {
print('post', dumpValue(this_value));
}
} }
/*=== /*===
@ -5457,8 +5457,10 @@ try {
coercion coercion
pre undefined pre undefined
TypeError TypeError
post undefined
pre null pre null
TypeError TypeError
post null
pre boolean undefined pre boolean undefined
res object 0 res object 0
post boolean undefined post boolean undefined

Loading…
Cancel
Save