diff --git a/src/lib/libembind.js b/src/lib/libembind.js index 38fc95bb42687..88a5de85c096d 100644 --- a/src/lib/libembind.js +++ b/src/lib/libembind.js @@ -3,28 +3,6 @@ // University of Illinois/NCSA Open Source License. Both these licenses can be // found in the LICENSE file. -/*global addToLibrary*/ - -/*global Module, asm*/ -/*global _malloc, _free, _memcpy*/ -/*global FUNCTION_TABLE, HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64*/ -/*global AsciiToString*/ -/*global Emval, emval_handle_array, __emval_decref*/ -/*jslint sub:true*/ /* The symbols 'fromWireType' and 'toWireType' must be accessed via array notation to be closure-safe since craftInvokerFunction crafts functions as strings that can't be closured. */ - -// -- jshint doesn't understand library syntax, so we need to specifically tell it about the symbols we define -/*global typeDependencies, flushPendingDeletes, getTypeName, getBasestPointer, throwBindingError, UnboundTypeError, embindRepr, registeredInstances, registeredTypes*/ -/*global ensureOverloadTable, embind__requireFunction, awaitingDependencies, makeLegalFunctionName, embind_charCodes:true, registerType, createNamedFunction, RegisteredPointer, throwInternalError*/ -/*global floatReadValueFromPointer, integerReadValueFromPointer, enumReadValueFromPointer, replacePublicSymbol, craftInvokerFunction, tupleRegistrations*/ -/*global finalizationRegistry, attachFinalizer, detachFinalizer, releaseClassHandle, runDestructor*/ -/*global ClassHandle, makeClassHandle, structRegistrations, whenDependentTypesAreResolved, BindingError, deletionQueue, delayFunction:true, upcastPointer*/ -/*global exposePublicSymbol, heap32VectorToArray, char_0, char_9*/ -/*global getInheritedInstanceCount, getLiveInheritedInstances, setDelayFunction, InternalError, runDestructors*/ -/*global requireRegisteredType, unregisterInheritedInstance, registerInheritedInstance, PureVirtualError, throwUnboundTypeError*/ -/*global assert, validateThis, downcastPointer, registeredPointers, RegisteredClass, getInheritedInstance */ -/*global throwInstanceAlreadyDeleted, shallowCopyInternalPointer*/ -/*global RegisteredPointer_fromWireType, constNoSmartPtrRawPointerToWireType, nonConstNoSmartPtrRawPointerToWireType, genericPointerToWireType*/ - #include "libembind_shared.js" var LibraryEmbind = { diff --git a/src/lib/libemval.js b/src/lib/libemval.js index aed8122e78038..f9c9fc5fc4c5f 100644 --- a/src/lib/libemval.js +++ b/src/lib/libemval.js @@ -3,18 +3,6 @@ // University of Illinois/NCSA Open Source License. Both these licenses can be // found in the LICENSE file. -/*global Module:true, Runtime*/ -/*global HEAP32*/ -/*global createNamedFunction*/ -/*global AsciiToString, stringToUTF8*/ -/*global requireRegisteredType, throwBindingError, runDestructors*/ -/*jslint sub:true*/ /* The symbols 'fromWireType' and 'toWireType' must be accessed via array notation to be closure-safe since craftInvokerFunction crafts functions as strings that can't be closured. */ - -// -- jshint doesn't understand library syntax, so we need to mark the symbols exposed here -/*global getStringOrSymbol, emval_freelist, emval_handles, Emval, __emval_unregister, count_emval_handles, emval_symbols, __emval_decref*/ -/*global emval_addMethodCaller, emval_methodCallers, addToLibrary, global, emval_lookupTypes, makeLegalFunctionName*/ -/*global emval_get_global*/ - // Number of handles reserved for non-use (0) or common values w/o refcount. {{{ const EMVAL_RESERVED_HANDLES = 5; @@ -170,7 +158,6 @@ var LibraryEmVal = { throw Error('unable to get global object.'); }, #else - // appease jshint (technically this code uses eval) $emval_get_global: () => { if (typeof globalThis == 'object') { return globalThis;