Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix prototypes of interface objects (fixes #2665) #8954

Merged
merged 8 commits into from Jan 12, 2016
Merged

Commits on Jan 12, 2016

  1. Remove NativePropertyHooks

    nox committed Jan 12, 2016
  2. Refactor prototype initialisation

    The function do_create_interface_objects is removed in favour of 4 functions:
    create_callback_interface_object, create_interface_prototype_object,
    create_noncallback_interface_object and create_named_constructors.
    
    While this increases the amount of codegen'd code, this greatly improves the
    readability of the code involved in this part of DOM, instead of having one function
    doing 4 different things. We can always find a more adequate abstraction later.
    
    NativeProperties and everything related to the interface objects have been removed
    from the utils module.
    nox committed Jan 12, 2016
  3. Use the object prototype for callback interface objects

    window.NodeFilter's prototype should be the object prototype.
    nox committed Jan 12, 2016
  4. Describe non-callback interface objects with JSClass structures

    JS_NewFunction doesn't allow us to set the prototype of the interface objects.
    nox committed Jan 12, 2016
  5. Fix prototypes of interface objects (fixes #2665)

    nox committed Jan 12, 2016
You can’t perform that action at this time.