Skip to content

Conversation

@RedDwarfian
Copy link
Contributor

Kudos to @jtenner for assistance with this.

@jtenner
Copy link
Contributor

jtenner commented Jul 20, 2019

@dcodeIO this looks good to me. Did we miss anything?

}

readInt8(offset: i32) : i8 {
if(u32(offset) >= this.dataLength) throw new RangeError(E_INDEXOUTOFRANGE);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In stdlib, which is also non-portable, this is usually written as <u32>offset. Might make sense to adopt the stdlib notation in the node library as well for consistency.

@dcodeIO
Copy link
Member

dcodeIO commented Jul 20, 2019

Looking good, just a minor nit :)

@jtenner jtenner added the enhancement New feature or request label Jul 21, 2019
@jtenner jtenner merged commit 364fe63 into AssemblyScript:master Jul 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

3 participants