Changeset 22223

Show
Ignore:
Timestamp:
10/27/08 16:18:43 (5 years ago)
Author:
fujidig
Message:

notesel した変数を sdim しても大丈夫なように

Location:
lang/javascript/hsp-on-js/trunk/src
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/hsp-on-js/trunk/src/builtin-funcs.js

    r22110 r22223  
    322322                        v.assign(StrValue.EMPTY_STR); 
    323323                } 
    324                 var buf = v.getBuffer(); 
    325                 this.selectNote(buf); 
     324                this.selectNote(v); 
    326325        }, 
    327326        0x23: function noteadd(line, lineNumber, overwrite) { 
  • lang/javascript/hsp-on-js/trunk/src/evaluator.js

    r22173 r22223  
    397397                        throw new HSPError(ErrorCode.ILLEGAL_FUNCTION, 'ノートパッドが選択されていません'); 
    398398                } 
    399                 return this.note; 
     399                return this.note.getBuffer(); 
    400400        }, 
    401401        fileRead: function fileRead(path, success, error) { 
  • lang/javascript/hsp-on-js/trunk/src/hsp-array.js

    r21141 r22223  
    123123        ref: function ref(offset) { 
    124124                return new Reference(this, offset); 
     125        }, 
     126        bufferAt: function bufferAt(offset) { 
     127                throw new HSPError(ErrorCode.TYPE_MISMATCH); 
    125128        } 
    126129}; 
  • lang/javascript/hsp-on-js/trunk/src/t.hsp

    r22216 r22223  
    1 mes strf("%.1f", 0.9999999999999999) 
    2 mes strf("%.2f", 0.099) 
    3 mes strf("%.1f", 0.99) 
    4 mes strf("%.0f", 9.9) 
    5 mes strf("%.0f", 999.99999) 
    6 mes strf("%.1f", 999.99999) 
    7 mes strf("%.2f", 999.99999) 
    8 mes strf("%.3f", 999.99999) 
    9 mes strf("%.4f", 999.99999) 
    10 mes strf("%.5f", 999.99999) 
     1notesel a 
     2sdim a 
     3noteadd "foo" 
     4noteadd "bar" 
     5mes a 
     6