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

Side by Side Diff: test/cctest/test-api.cc

Issue 259883002: ES6: Add support for Map and Set Iterator (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code review changes Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/runtime.cc ('k') | test/cctest/test-ordered-hash-table.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 21411 matching lines...) Expand 10 before | Expand all | Expand 10 after
21422 v8::HandleScope scope(isolate); 21422 v8::HandleScope scope(isolate);
21423 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); 21423 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate);
21424 Local<Object> obj = templ->NewInstance(); 21424 Local<Object> obj = templ->NewInstance();
21425 obj->GetIdentityHash(); 21425 obj->GetIdentityHash();
21426 obj->DeleteHiddenValue(v8_str("Bug")); 21426 obj->DeleteHiddenValue(v8_str("Bug"));
21427 } 21427 }
21428 21428
21429 21429
21430 THREADED_TEST(Regress2535) { 21430 THREADED_TEST(Regress2535) {
21431 i::FLAG_harmony_collections = true; 21431 i::FLAG_harmony_collections = true;
21432 i::FLAG_harmony_symbols = true;
21432 LocalContext context; 21433 LocalContext context;
21433 v8::HandleScope scope(context->GetIsolate()); 21434 v8::HandleScope scope(context->GetIsolate());
21434 Local<Value> set_value = CompileRun("new Set();"); 21435 Local<Value> set_value = CompileRun("new Set();");
21435 Local<Object> set_object(Local<Object>::Cast(set_value)); 21436 Local<Object> set_object(Local<Object>::Cast(set_value));
21436 CHECK_EQ(0, set_object->InternalFieldCount()); 21437 CHECK_EQ(0, set_object->InternalFieldCount());
21437 Local<Value> map_value = CompileRun("new Map();"); 21438 Local<Value> map_value = CompileRun("new Map();");
21438 Local<Object> map_object(Local<Object>::Cast(map_value)); 21439 Local<Object> map_object(Local<Object>::Cast(map_value));
21439 CHECK_EQ(0, map_object->InternalFieldCount()); 21440 CHECK_EQ(0, map_object->InternalFieldCount());
21440 } 21441 }
21441 21442
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after
22659 Local<Script> script = v8::ScriptCompiler::Compile( 22660 Local<Script> script = v8::ScriptCompiler::Compile(
22660 isolate, &script_source); 22661 isolate, &script_source);
22661 Local<Value> script_name = script->GetUnboundScript()->GetScriptName(); 22662 Local<Value> script_name = script->GetUnboundScript()->GetScriptName();
22662 CHECK(!script_name.IsEmpty()); 22663 CHECK(!script_name.IsEmpty());
22663 CHECK(script_name->IsString()); 22664 CHECK(script_name->IsString());
22664 String::Utf8Value utf8_name(script_name); 22665 String::Utf8Value utf8_name(script_name);
22665 CHECK_EQ(url, *utf8_name); 22666 CHECK_EQ(url, *utf8_name);
22666 int line_number = script->GetUnboundScript()->GetLineNumber(0); 22667 int line_number = script->GetUnboundScript()->GetLineNumber(0);
22667 CHECK_EQ(13, line_number); 22668 CHECK_EQ(13, line_number);
22668 } 22669 }
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | test/cctest/test-ordered-hash-table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698