mirror of
https://github.com/tc39/test262.git
synced 2025-08-26 12:28:34 +02:00
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.
20 lines
435 B
JavaScript
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";
|
|
});
|