mirror of
https://github.com/tc39/test262.git
synced 2025-07-31 01:44:54 +02:00
parseTestRecord: add support for YAML frontmatter parseTestRecord: initial unit test for test record parser parseTestRecord: refactor for testing factor old parsing; add YAML parsing runner: support "includes" from YAML frontmatter support frontmatter "includes" in python runner use test.includes if present instead of scanning test code with regex harness: factor individual functions out into files tools: handle YAML errors tolerate missing keys in dictionary (flags, includes) report filename when empty frontmatter block new option --list-includes to test262.py harness: factor helper functions into separate files sth: remove extra close-paren (syntax error) test_common: TDD; failing parse of YAML common: use parseTestRecord (YAML-aware)
19 lines
482 B
JavaScript
19 lines
482 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
info: >
|
|
The production Block { } in strict code can't contain function
|
|
declaration;
|
|
description: Trying to declare function at the Block statement
|
|
negative: SyntaxError
|
|
bestPractice: "http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls"
|
|
flags: [onlyStrict]
|
|
---*/
|
|
|
|
"use strict";
|
|
{
|
|
function __func(){}
|
|
}
|
|
|