github.com/igggame/nebulas-go@v2.1.0+incompatible/nf/nvm/test/test_parallel_bug.js (about)

     1  "use strict";
     2  
     3  var parallelTest = function () {
     4      LocalContractStorage.defineProperties(this, {
     5          val: null, 
     6      });
     7  };
     8  
     9  parallelTest.prototype = {
    10      init: function (a) {
    11          this.val = a;
    12      },
    13  
    14       test: function() {
    15          var a = this.val;
    16          if (!a) {
    17               throw("reproduce the bug")
    18          }
    19          this.val = a + 1
    20          return this.val
    21       }
    22  };
    23  module.exports = parallelTest;