Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(943)

Side by Side Diff: test/webkit/fast/js/caller-property-expected.txt

Issue 1027283004: [es6] do not add caller/arguments to ES6 function definitions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase + test262 exceptions Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2013 the V8 project authors. All rights reserved. 1 # Copyright 2013 the V8 project authors. All rights reserved.
2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions 5 # modification, are permitted provided that the following conditions
6 # are met: 6 # are met:
7 # 1. Redistributions of source code must retain the above copyright 7 # 1. Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # 2. Redistributions in binary form must reproduce the above copyright 9 # 2. Redistributions in binary form must reproduce the above copyright
10 # notice, this list of conditions and the following disclaimer in the 10 # notice, this list of conditions and the following disclaimer in the
(...skipping 12 matching lines...) Expand all
23 23
24 This tests for caller property in functions. Only functions that are called from inside of other functions and have a parent should have this property set. Test s return true when caller is found and false when the caller is null. 24 This tests for caller property in functions. Only functions that are called from inside of other functions and have a parent should have this property set. Test s return true when caller is found and false when the caller is null.
25 25
26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
27 27
28 28
29 PASS childHasCallerWhenExecutingGlobalCode is false 29 PASS childHasCallerWhenExecutingGlobalCode is false
30 PASS childHasCallerWhenCalledWithoutParent is false 30 PASS childHasCallerWhenCalledWithoutParent is false
31 PASS childHasCallerWhenCalledFromWithinParent is true 31 PASS childHasCallerWhenCalledFromWithinParent is true
32 PASS nonStrictCaller(nonStrictCallee) is nonStrictCaller 32 PASS nonStrictCaller(nonStrictCallee) is nonStrictCaller
33 FAIL nonStrictCaller(strictCallee) should throw TypeError: Type error. Threw exc eption TypeError: 'caller', 'callee', and 'arguments' properties may not be acce ssed on strict mode functions or the arguments objects for calls to them. 33 FAIL nonStrictCaller(strictCallee) should throw TypeError: Type error. Threw exc eption TypeError: 'caller' and 'arguments' are restricted function properties an d cannot be accessed in this context..
arv (Not doing code reviews) 2015/04/07 16:18:40 Maybe update the test for these?
caitp (gmail) 2015/04/07 16:29:57 Okay --- Is there a good reason this test is kept
arv (Not doing code reviews) 2015/04/07 17:00:12 We can remove it as long as we have other tests th
34 FAIL strictCaller(nonStrictCallee) should throw TypeError: Function.caller used to retrieve strict caller. Was null. 34 FAIL strictCaller(nonStrictCallee) should throw TypeError: Function.caller used to retrieve strict caller. Was null.
35 FAIL strictCaller(strictCallee) should throw TypeError: Type error. Threw except ion TypeError: 'caller', 'callee', and 'arguments' properties may not be accesse d on strict mode functions or the arguments objects for calls to them. 35 FAIL strictCaller(strictCallee) should throw TypeError: Type error. Threw except ion TypeError: 'caller' and 'arguments' are restricted function properties and c annot be accessed in this context..
36 PASS nonStrictCaller(boundNonStrictCallee) is nonStrictCaller 36 PASS nonStrictCaller(boundNonStrictCallee) is nonStrictCaller
37 FAIL nonStrictCaller(boundStrictCallee) should throw TypeError: Type error. Thre w exception TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them. 37 FAIL nonStrictCaller(boundStrictCallee) should throw TypeError: Type error. Thre w exception TypeError: 'caller' and 'arguments' are restricted function properti es and cannot be accessed in this context..
38 FAIL strictCaller(boundNonStrictCallee) should throw TypeError: Function.caller used to retrieve strict caller. Was null. 38 FAIL strictCaller(boundNonStrictCallee) should throw TypeError: Function.caller used to retrieve strict caller. Was null.
39 FAIL strictCaller(boundStrictCallee) should throw TypeError: Type error. Threw e xception TypeError: 'caller', 'callee', and 'arguments' properties may not be ac cessed on strict mode functions or the arguments objects for calls to them. 39 FAIL strictCaller(boundStrictCallee) should throw TypeError: Type error. Threw e xception TypeError: 'caller' and 'arguments' are restricted function properties and cannot be accessed in this context..
40 PASS nonStrictGetter(nonStrictAccessor) is nonStrictGetter 40 PASS nonStrictGetter(nonStrictAccessor) is nonStrictGetter
41 PASS nonStrictSetter(nonStrictAccessor) is true 41 PASS nonStrictSetter(nonStrictAccessor) is true
42 FAIL nonStrictGetter(strictAccessor) should throw TypeError: Type error. Threw e xception TypeError: 'caller', 'callee', and 'arguments' properties may not be ac cessed on strict mode functions or the arguments objects for calls to them. 42 FAIL nonStrictGetter(strictAccessor) should throw TypeError: Type error. Threw e xception TypeError: 'caller' and 'arguments' are restricted function properties and cannot be accessed in this context..
43 FAIL nonStrictSetter(strictAccessor) should throw TypeError: Type error. Threw e xception TypeError: 'caller', 'callee', and 'arguments' properties may not be ac cessed on strict mode functions or the arguments objects for calls to them. 43 FAIL nonStrictSetter(strictAccessor) should throw TypeError: Type error. Threw e xception TypeError: 'caller' and 'arguments' are restricted function properties and cannot be accessed in this context..
44 FAIL strictGetter(nonStrictAccessor) should throw TypeError: Function.caller use d to retrieve strict caller. Was null. 44 FAIL strictGetter(nonStrictAccessor) should throw TypeError: Function.caller use d to retrieve strict caller. Was null.
45 FAIL strictSetter(nonStrictAccessor) should throw TypeError: Function.caller use d to retrieve strict caller. Was undefined. 45 FAIL strictSetter(nonStrictAccessor) should throw TypeError: Function.caller use d to retrieve strict caller. Was undefined.
46 FAIL strictGetter(strictAccessor) should throw TypeError: Type error. Threw exce ption TypeError: 'caller', 'callee', and 'arguments' properties may not be acces sed on strict mode functions or the arguments objects for calls to them. 46 FAIL strictGetter(strictAccessor) should throw TypeError: Type error. Threw exce ption TypeError: 'caller' and 'arguments' are restricted function properties and cannot be accessed in this context..
47 FAIL strictSetter(strictAccessor) should throw TypeError: Type error. Threw exce ption TypeError: 'caller', 'callee', and 'arguments' properties may not be acces sed on strict mode functions or the arguments objects for calls to them. 47 FAIL strictSetter(strictAccessor) should throw TypeError: Type error. Threw exce ption TypeError: 'caller' and 'arguments' are restricted function properties and cannot be accessed in this context..
48 PASS successfullyParsed is true 48 PASS successfullyParsed is true
49 49
50 TEST COMPLETE 50 TEST COMPLETE
51 51
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698