test262/test/language/statements/function/invalid-name-dot.js

17 lines
403 B
JavaScript

// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 13.0-3
description: >
13.0 - property names in function definition is not allowed, add a
new property into object
negative:
phase: parse
type: SyntaxError
---*/
throw "Test262: This statement should not be evaluated.";
function obj.tt() {}