nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/NativeDebug.java
equal
deleted
inserted
replaced
24 */ |
24 */ |
25 |
25 |
26 package jdk.nashorn.internal.objects; |
26 package jdk.nashorn.internal.objects; |
27 |
27 |
28 import static jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED; |
28 import static jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED; |
29 |
|
30 import java.io.PrintWriter; |
29 import java.io.PrintWriter; |
31 import java.util.LinkedList; |
30 import java.util.LinkedList; |
32 import java.util.Objects; |
31 import java.util.Objects; |
33 import jdk.nashorn.internal.objects.annotations.Attribute; |
32 import jdk.nashorn.internal.objects.annotations.Attribute; |
34 import jdk.nashorn.internal.objects.annotations.Function; |
33 import jdk.nashorn.internal.objects.annotations.Function; |
260 return cap; |
259 return cap; |
261 } |
260 } |
262 |
261 |
263 /** |
262 /** |
264 * Set the event queue capacity |
263 * Set the event queue capacity |
265 * @param self |
264 * @param self an event queue |
266 * @param newCapacity |
265 * @param newCapacity new capacity |
267 */ |
266 */ |
268 @Function(attributes = Attribute.NOT_ENUMERABLE, where = Where.CONSTRUCTOR) |
267 @Function(attributes = Attribute.NOT_ENUMERABLE, where = Where.CONSTRUCTOR) |
269 public static void setEventQueueCapacity(final Object self, final Object newCapacity) { |
268 public static void setEventQueueCapacity(final Object self, final Object newCapacity) { |
270 ((ScriptObject)self).set(EVENT_QUEUE_CAPACITY, newCapacity, NashornCallSiteDescriptor.CALLSITE_STRICT); |
269 ((ScriptObject)self).set(EVENT_QUEUE_CAPACITY, newCapacity, NashornCallSiteDescriptor.CALLSITE_STRICT); |
271 } |
270 } |