OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007-2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2007-2011 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 return; | 165 return; |
166 } | 166 } |
167 if (value->IsMap() || value->IsWeakMap()) { | 167 if (value->IsMap() || value->IsWeakMap()) { |
168 v8SetReturnValue(info, v8AtomicString(isolate, "map")); | 168 v8SetReturnValue(info, v8AtomicString(isolate, "map")); |
169 return; | 169 return; |
170 } | 170 } |
171 if (value->IsSet() || value->IsWeakSet()) { | 171 if (value->IsSet() || value->IsWeakSet()) { |
172 v8SetReturnValue(info, v8AtomicString(isolate, "set")); | 172 v8SetReturnValue(info, v8AtomicString(isolate, "set")); |
173 return; | 173 return; |
174 } | 174 } |
| 175 if (value->IsMapIterator() || value->IsSetIterator()) { |
| 176 v8SetReturnValue(info, v8AtomicString(isolate, "iterator")); |
| 177 return; |
| 178 } |
175 if (V8Node::hasInstance(value, isolate)) { | 179 if (V8Node::hasInstance(value, isolate)) { |
176 v8SetReturnValue(info, v8AtomicString(isolate, "node")); | 180 v8SetReturnValue(info, v8AtomicString(isolate, "node")); |
177 return; | 181 return; |
178 } | 182 } |
179 if (V8NodeList::hasInstance(value, isolate) | 183 if (V8NodeList::hasInstance(value, isolate) |
180 || V8DOMTokenList::hasInstance(value, isolate) | 184 || V8DOMTokenList::hasInstance(value, isolate) |
181 || V8HTMLCollection::hasInstance(value, isolate) | 185 || V8HTMLCollection::hasInstance(value, isolate) |
182 || V8HTMLAllCollection::hasInstance(value, isolate)) { | 186 || V8HTMLAllCollection::hasInstance(value, isolate)) { |
183 v8SetReturnValue(info, v8AtomicString(isolate, "array")); | 187 v8SetReturnValue(info, v8AtomicString(isolate, "array")); |
184 return; | 188 return; |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 void V8InjectedScriptHost::setNonEnumPropertyMethodCustom(const v8::FunctionCall
backInfo<v8::Value>& info) | 505 void V8InjectedScriptHost::setNonEnumPropertyMethodCustom(const v8::FunctionCall
backInfo<v8::Value>& info) |
502 { | 506 { |
503 if (info.Length() < 3 || !info[0]->IsObject() || !info[1]->IsString()) | 507 if (info.Length() < 3 || !info[0]->IsObject() || !info[1]->IsString()) |
504 return; | 508 return; |
505 | 509 |
506 v8::Local<v8::Object> object = info[0]->ToObject(); | 510 v8::Local<v8::Object> object = info[0]->ToObject(); |
507 object->ForceSet(info[1], info[2], v8::DontEnum); | 511 object->ForceSet(info[1], info[2], v8::DontEnum); |
508 } | 512 } |
509 | 513 |
510 } // namespace blink | 514 } // namespace blink |
OLD | NEW |