Skip to content

Commit

Permalink
Added instance methods, removed JavaOpts
Browse files Browse the repository at this point in the history
  • Loading branch information
jheysel-r7 committed Nov 13, 2024
1 parent f8f2995 commit fdeaa19
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/rex/random_identifier/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,21 @@ class ExhaustedSpaceError < StandardError; end
).uniq.freeze
)

JavaScriptOpts = JavaOpts.merge(
JavaScriptOpts = DefaultOpts.merge(
forbidden: (
JavaOpts[:forbidden] +
# https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#reserved_words
# https://developer.mozilla.org/en-US/docs/Web/API/Window Instance methods
%w[
const continue debugger default delete do else export extends false finally for function if import in
instanceof new null return super switch this throw true try typeof var void while with let static yield
await arguments as async eval from get of set enum implements interface package private protected public
abstract boolean byte char double final float goto int long native short synchronized throws transient volatile
atob alert blur btoa cancelAnimationFrame cancelIdleCallback clearInterval clearTimeout close confirm
createImageBitmap dump fetch find focus getComputedStyle getDefaultComputedStyle getScreenDetails getSelection
matchMedia moveBy moveTo open postMessage print prompt queryLocalFonts queueMicrotask reportError
requestAnimationFrame requestIdleCallback resizeBy resizeTo scroll scrollBy scrollByLines scrollByPages
scrollTo setInterval setTimeout showDirectoryPicker showOpenFilePicker showSaveFilePicker sizeToContent
stop structuredClone updateCommands
]
).uniq.freeze
)
Expand Down

0 comments on commit fdeaa19

Please sign in to comment.