This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Original code | |
| async function fetchData(id, delay) { | |
| await new Promise(resolve => setTimeout(resolve, delay)); | |
| return { id: id, data: 'Data-' + id }; | |
| } | |
| async function processInParallel() { | |
| // Launch multiple async operations in parallel | |
| const promise1 = fetchData(1, 10); | |
| const promise2 = fetchData(2, 5); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const _b_ = (function () { | |
| var e = [ | |
| { | |
| 'i': [ | |
| { | |
| 'o': 0x8, | |
| 'a': 0x3 | |
| }, | |
| { | |
| 'o': 0x4b, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // E-Commerce Shopping Cart Application | |
| // Demonstrates comprehensive VM obfuscation with real-world patterns | |
| // Product constructor function (OOP pattern without ES6 classes) | |
| function Product(name, price, category, inStock) { | |
| // Handle default parameter manually (ES5 compatible) | |
| if (inStock === undefined) { | |
| inStock = true; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var _b_ = (function () { | |
| var e = [ | |
| { | |
| 'i': [ | |
| { | |
| 'o': 0xd3, | |
| 'a': 0x0 | |
| }, | |
| { | |
| 'o': 0x4b, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const version = process.argv[3]; | |
| const edition = process.argv[4] === 'oss' ? 'oss' : 'ee'; | |
| const [major, minor] = version.split('.'); | |
| const jarName = `metabase-${edition}-${version}.jar`; | |
| const fileExists = fs.existsSync(jarName); | |
| if (!fileExists) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var a0i = [ | |
| 'ugq8ESoA', | |
| 'tCkyWO9IW4q=', | |
| 'oHxdNmouWQe=', | |
| 'WO3cIffHvG==', | |
| 'nmoSFmkvWQ0=', | |
| 'EMCUwCo1', | |
| 'W693WRKWW5S=', | |
| 'WQddQJlcSKO=', | |
| 'W4hcNva=', |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var a0a = [ | |
| 'originalInstance', | |
| 'bootstrapModuleFactory', | |
| '$controller', | |
| 'wks', | |
| 'PairsObservable', | |
| 'RegExp', | |
| 'advance', | |
| 'serializeBody', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { inject, injectable, } from 'inversify'; | |
| import { ServiceIdentifiers } from '../../container/ServiceIdentifiers'; | |
| import * as eslintScope from 'eslint-scope'; | |
| import * as ESTree from 'estree'; | |
| import * as estraverse from 'estraverse'; | |
| import { IOptions } from '../../interfaces/options/IOptions'; | |
| import { IRandomGenerator } from '../../interfaces/utils/IRandomGenerator'; | |
| import { IVisitor } from '../../interfaces/node-transformers/IVisitor'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type PrependToArray <Element, TArray extends _Iterator<any, any[]> = []> = | |
| ((head: Element, ...args: TArray) => any) extends ((...args: infer TResult) => any) | |
| ? TResult | |
| : TArray; | |
| type ArrayLength <TArray extends _Iterator<any, any[]>> = TArray['length']; | |
| type NextIteratorValue <TArray extends _Iterator<any, any[]>> = PrependToArray<any, TArray>; | |
| type _Iterator< |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type PrependToArray <Element, TArray extends _Iterator<any, any[]> = []> = | |
| ((head: Element, ...args: TArray) => any) extends ((...args: infer TResult) => any) | |
| ? TResult | |
| : TArray; | |
| type ArrayLength <TArray extends _Iterator<any, any[]>> = TArray['length']; | |
| type NextIteratorValue <TArray extends _Iterator<any, any[]>> = PrependToArray<any, TArray>; | |
| type _Iterator<Index extends number = 0, Current extends any[] = []> = { |
NewerOlder