@vnejs/plugins.core.stack 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/modules/call.js CHANGED
@@ -9,7 +9,7 @@ export class Call extends Module {
9
9
  init = () =>
10
10
  Promise.all([
11
11
  this.emit(this.EVENTS.SCENARIO.LINE_EXEC_REG, { module: this.name, handler: this.execHandler }),
12
- this.emit(this.EVENTS.SCENARIO.LINE_LOAD_REG, { module: this.name, handler: this.preloadHandler }),
12
+ this.emit(this.EVENTS.SCENARIO.LINE_LOAD_REG, { module: this.name, handler: this.lineLoadHandler }),
13
13
  ]);
14
14
 
15
15
  execHandler = async (label) => {
@@ -18,7 +18,8 @@ export class Call extends Module {
18
18
  this.emit(this.EVENTS.SCENARIO.NEXT, { module: this.name });
19
19
  };
20
20
 
21
- preloadHandler = ({ line: label, deep } = {}) => ({ label, deep: deep - 1 });
21
+ lineLoadHandler = ({ line: label, deep }) =>
22
+ void this.emit(this.EVENTS.SCENARIO.LABEL_GET, { label, deep: deep - 1, priority: this.CONST.MEDIA.PRIORITIES.LOW });
22
23
 
23
24
  onStackCall = ({ label } = {}) => {
24
25
  this.emit(this.EVENTS.LOGS.EMIT, { module: this.name, value: { label } });
package/modules/jmp.js CHANGED
@@ -9,7 +9,7 @@ export class Jmp extends Module {
9
9
  init = () =>
10
10
  Promise.all([
11
11
  this.emit(this.EVENTS.SCENARIO.LINE_EXEC_REG, { module: this.name, handler: this.execHandler }),
12
- this.emit(this.EVENTS.SCENARIO.LINE_LOAD_REG, { module: this.name, handler: this.preloadHandler }),
12
+ this.emit(this.EVENTS.SCENARIO.LINE_LOAD_REG, { module: this.name, handler: this.lineLoadHandler }),
13
13
  ]);
14
14
 
15
15
  execHandler = async (label) => {
@@ -18,7 +18,8 @@ export class Jmp extends Module {
18
18
  this.emit(this.EVENTS.SCENARIO.NEXT, { module: this.name });
19
19
  };
20
20
 
21
- preloadHandler = ({ line: label, deep } = {}) => ({ label, deep: deep - 1 });
21
+ lineLoadHandler = ({ line: label, deep }) =>
22
+ void this.emit(this.EVENTS.SCENARIO.LABEL_GET, { label, deep: deep - 1, priority: this.CONST.MEDIA.PRIORITIES.LOW });
22
23
 
23
24
  onStackJmp = ({ label } = {}) => {
24
25
  this.emit(this.EVENTS.LOGS.EMIT, { module: this.name, value: { label } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.core.stack",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",