test262/implementation-contributed/javascriptcore/stress/string-16bit-repeat-overflo...

10 lines
153 B
JavaScript

var exception;
try {
print('\ud000'.repeat(2**30));
} catch (e) {
exception = e;
}
if (exception != "Error: Out of memory")
throw "FAILED";