blob: 291063e4abee772fb55b344cb23a448b50545474 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// ArrayBuffer.slice should be warned once and only once.
enableLastWarning();
ArrayBuffer.slice(new ArrayBuffer(10), 1);
var warning = getLastWarning();
assertEq(warning !== null, true, "warning should be generated");
assertEq(warning.name, "Warning");
clearLastWarning();
ArrayBuffer.slice(new ArrayBuffer(10), 1);
warning = getLastWarning();
assertEq(warning, null, "warning should not generated for 2nd ocurrence");
|