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

Unified Diff: test/mjsunit/regress/regress-3483.js

Issue 433413002: `1..isPrototypeOf.call(null)` should return false, not throw TypeError. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Patch Set 5 Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/function-call.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-3483.js
diff --git a/test/mjsunit/regress/regress-352059.js b/test/mjsunit/regress/regress-3483.js
similarity index 90%
copy from test/mjsunit/regress/regress-352059.js
copy to test/mjsunit/regress/regress-3483.js
index cd1a4c28f77f40e3932b4dd860c803915b25b375..dec95c48ffe53482af0cbd56103ef05cb8c84752 100644
--- a/test/mjsunit/regress/regress-352059.js
+++ b/test/mjsunit/regress/regress-3483.js
@@ -25,11 +25,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-var foo = false;
-
-function bar() {
- foo = 2;
- return 4 % foo;
-}
-
-bar();
+assertFalse(Object.prototype.isPrototypeOf.call());
+assertFalse(Object.prototype.isPrototypeOf.call(null, 1));
+assertFalse(Object.prototype.isPrototypeOf.call(undefined, 1));
« no previous file with comments | « test/mjsunit/function-call.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698