code: func popSlice(ctx *duktape.Context) []byte {
  	blob := common.CopyBytes(makeSlice(ctx.GetBuffer(-1)))
  	ctx.Pop()
  	return blob
  }
docs: // popSlice pops a buffer off the JavaScript stack and returns it as a slice.