diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-13 14:37:01 +0100 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-02-13 21:56:55 +0100 |
commit | 59e549150996ec4c8a049f893dad9ec95a4677e9 (patch) | |
tree | 2a9d72d5b7863a80a7c145adbb3f1a311b8a1fd9 /src/lopcodes.js | |
parent | ab14ee4aa480b21a6e5c6c4d8cdb1823951ed7c3 (diff) | |
download | fengari-59e549150996ec4c8a049f893dad9ec95a4677e9.tar.gz fengari-59e549150996ec4c8a049f893dad9ec95a4677e9.tar.bz2 fengari-59e549150996ec4c8a049f893dad9ec95a4677e9.zip |
Better use of module to avoid cyclic dependencies issues
Diffstat (limited to 'src/lopcodes.js')
-rw-r--r-- | src/lopcodes.js | 48 |
1 files changed, 23 insertions, 25 deletions
diff --git a/src/lopcodes.js b/src/lopcodes.js index 6bdfd7c..1350468 100644 --- a/src/lopcodes.js +++ b/src/lopcodes.js @@ -83,28 +83,26 @@ const INDEXK = function (r) { /* number of list items to accumulate before a SETLIST instruction */ const LFIELDS_PER_FLUSH = 50; -module.exports = { - OpCodes: OpCodes, - SIZE_C: SIZE_C, - SIZE_B: SIZE_B, - SIZE_Bx: SIZE_Bx, - SIZE_A: SIZE_A, - SIZE_Ax: SIZE_Ax, - SIZE_OP: SIZE_OP, - POS_OP: POS_OP, - POS_A: POS_A, - POS_C: POS_C, - POS_B: POS_B, - POS_Bx: POS_Bx, - POS_Ax: POS_Ax, - MAXARG_Bx: MAXARG_Bx, - MAXARG_sBx: MAXARG_sBx, - MAXARG_Ax: MAXARG_Ax, - MAXARG_A: MAXARG_A, - MAXARG_B: MAXARG_B, - MAXARG_C: MAXARG_C, - BITRK: BITRK, - ISK: ISK, - INDEXK: INDEXK, - LFIELDS_PER_FLUSH: LFIELDS_PER_FLUSH -};
\ No newline at end of file +module.exports.OpCodes = OpCodes; +module.exports.SIZE_C = SIZE_C; +module.exports.SIZE_B = SIZE_B; +module.exports.SIZE_Bx = SIZE_Bx; +module.exports.SIZE_A = SIZE_A; +module.exports.SIZE_Ax = SIZE_Ax; +module.exports.SIZE_OP = SIZE_OP; +module.exports.POS_OP = POS_OP; +module.exports.POS_A = POS_A; +module.exports.POS_C = POS_C; +module.exports.POS_B = POS_B; +module.exports.POS_Bx = POS_Bx; +module.exports.POS_Ax = POS_Ax; +module.exports.MAXARG_Bx = MAXARG_Bx; +module.exports.MAXARG_sBx = MAXARG_sBx; +module.exports.MAXARG_Ax = MAXARG_Ax; +module.exports.MAXARG_A = MAXARG_A; +module.exports.MAXARG_B = MAXARG_B; +module.exports.MAXARG_C = MAXARG_C; +module.exports.BITRK = BITRK; +module.exports.ISK = ISK; +module.exports.INDEXK = INDEXK; +module.exports.LFIELDS_PER_FLUSH = LFIELDS_PER_FLUSH;
\ No newline at end of file |