Java Code Examples for jdk.nashorn.internal.runtime.PropertyMap#deleteProperty()

The following examples show how to use jdk.nashorn.internal.runtime.PropertyMap#deleteProperty() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ScriptFunctionImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
private static PropertyMap createBoundFunctionMap(final PropertyMap strictModeMap) {
    // Bound function map is same as strict function map, but additionally lacks the "prototype" property, see
    // ECMAScript 5.1 section 15.3.4.5
    return strictModeMap.deleteProperty(strictModeMap.findProperty("prototype"));
}
 
Example 2
Source File: ScriptFunctionImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
private static PropertyMap createBoundFunctionMap(final PropertyMap strictModeMap) {
    // Bound function map is same as strict function map, but additionally lacks the "prototype" property, see
    // ECMAScript 5.1 section 15.3.4.5
    return strictModeMap.deleteProperty(strictModeMap.findProperty("prototype"));
}
 
Example 3
Source File: ScriptFunctionImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
private static PropertyMap createBoundFunctionMap(final PropertyMap strictModeMap) {
    // Bound function map is same as strict function map, but additionally lacks the "prototype" property, see
    // ECMAScript 5.1 section 15.3.4.5
    return strictModeMap.deleteProperty(strictModeMap.findProperty("prototype"));
}
 
Example 4
Source File: ScriptFunctionImpl.java    From nashorn with GNU General Public License v2.0 4 votes vote down vote up
private static PropertyMap createBoundFunctionMap(final PropertyMap strictModeMap) {
    // Bound function map is same as strict function map, but additionally lacks the "prototype" property, see
    // ECMAScript 5.1 section 15.3.4.5
    return strictModeMap.deleteProperty(strictModeMap.findProperty("prototype"));
}