Reviewers: Vyacheslav Egorov,

Message:
Please have a look if you get a chance!

Thanks,
  Luke

Description:
Expose APIs for detecting boxed primitives, native errors and Math.

While implementing structured clone I found that I need support
for detecting and creating objects using the builtin Number, String
and Boolean constructors; this CL adds this support. I also need
to be able to detect entities of "native object type (e.g., Error)",
hence the new IsNativeError() and IsMath() calls.

I would be interested to know of a reasonable way to cache the results
of the builtin property lookups.

(ref:
http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#safe-passing-of-structured-data)

BUG=
TEST=


Please review this at http://codereview.chromium.org/7344013/

SVN Base: git://github.com/v8/v8.git@master

Affected files:
  M include/v8.h
  M src/api.cc
  M src/factory.h
  M src/factory.cc
  M test/cctest/test-api.cc


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to