Example usage for jdk.nashorn.internal.objects NativeArray construct

List of usage examples for jdk.nashorn.internal.objects NativeArray construct

Introduction

In this page you can find the example usage for jdk.nashorn.internal.objects NativeArray construct.

Prototype

@SpecializedFunction(isConstructor = true)
public static NativeArray construct(final boolean newObj, final Object self) 

Source Link

Document

ECMA 15.4.2.2 new Array (len) Specialized constructor for zero arguments - empty array

Usage

From source file:com.jayway.jsonpath.internal.spi.json.NashornJsonProvider.java

License:Apache License

@Override
public Object createArray() {
    return NativeArray.construct(false, null);
}