mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Update dependencies (#1327)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { injectable, } from 'inversify';
|
||||
|
||||
import * as acorn from 'acorn';
|
||||
import * as eslintScope from 'eslint-scope';
|
||||
import * as estraverse from '@javascript-obfuscator/estraverse';
|
||||
import { KEYS, VisitorKeys } from 'eslint-visitor-keys';
|
||||
|
||||
@@ -404,7 +404,7 @@ export class NodeFactory {
|
||||
* @returns {Literal}
|
||||
*/
|
||||
public static literalNode (value: boolean | number | string, raw?: string): ESTree.Literal {
|
||||
raw = raw !== undefined ? raw : `'${value}'`;
|
||||
raw = raw ?? `'${value}'`;
|
||||
|
||||
return {
|
||||
type: NodeType.Literal,
|
||||
|
||||
Reference in New Issue
Block a user