Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / mozilla / strict / script-tests / 15.3.5.1.js
blobc1b793ad456bb4fd36f19d032c5c339c803591bd
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
3 /*
4  * Any copyright is dedicated to the Public Domain.
5  * http://creativecommons.org/licenses/publicdomain/
6  */
8 function fn() {
9   return function(a, b, c) { };
12 assertEq(testLenientAndStrict('var f = fn(); f.length = 1; f.length',
13                               returns(3), raisesException(TypeError)),
14          true);
15 assertEq(testLenientAndStrict('var f = fn(); delete f.length',
16                               returns(true), returns(true)),
17          true);
19 reportCompare(true, true);
21 var successfullyParsed = true;