blob: bf2e0f9b02fb40c836c25ce770c959e23f8dd5f3 [file] [log] [blame]
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 21.1.2.4
description: >
Returns empty string if template.raw.length is -Infinity
info: |
21.1.2.4 String.raw ( template , ...substitutions )
...
7. Let literalSegments be ToLength(Get(raw, "length")).
8. ReturnIfAbrupt(literalSegments).
9. If literalSegments ≤ 0, return the empty string.
...
---*/
var result = String.raw({
raw: {
length: -Infinity
}
});
assert.sameValue(result, '');