test262/test/language/literals/string/legacy-octal-escape-sequence-prologue-strict.js
Mike Pennisi ccaa9571ea Refactor string literal test for parsers
Thsi test for the parsing of string literals was expressed using `eval`.
This made the test more complex than necessary and also prevented the
test from providing value to ECMAScript parsers.

Remove the use of `eval` and instead express the expectation with
literal source text.
2018-07-13 16:17:19 -04:00

20 lines
435 B
JavaScript

// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 7.8.4-1-s
description: >
A directive preceeding an 'use strict' directive may not contain
an OctalEscapeSequence
negative:
phase: parse
type: SyntaxError
---*/
throw "Test262: This statement should not be evaluated.";
(function() {
"asterisk: \052";
"use strict";
});