Skip to content

Commit f0a65ef

Browse files
MridulMridul
andauthored
GLSLDecoder: Replace deprecated substr() with slice(). (#33260)
Co-authored-by: Mridul <iammridul012@gamil.com>
1 parent 02de89f commit f0a65ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/jsm/transpiler/GLSLDecoder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class Tokenizer {
170170

171171
skip( ...params ) {
172172

173-
let remainingCode = this.source.substr( this.position );
173+
let remainingCode = this.source.slice( this.position );
174174
let i = params.length;
175175

176176
while ( i -- ) {
@@ -182,7 +182,7 @@ class Tokenizer {
182182

183183
this.position += skipLength;
184184

185-
remainingCode = this.source.substr( this.position );
185+
remainingCode = this.source.slice( this.position );
186186

187187
// re-skip, new remainingCode is generated
188188
// maybe exist previous regexp non detected

0 commit comments

Comments
 (0)